<script setup lang="ts">
import { useVModel } from '@vueuse/core'
const props = defineProps<{  visible: boolean  title: string  prop: string}>()
const emit = defineEmits(['update:visible', 'loadList'])const bindVisible = useVModel(props, 'visible', emit)
const handleOk = () => { /*假装请求业务接口...*/  bindVisible.value = false  emit('loadList')}
</script>

<template>
  <a-modal v-model:open="bindVisible" :title="title" @ok="handleOk">
    <div>父组件传入的 prop：{{ prop }}</div>
  </a-modal>
</template>

<style scoped>

</style>